// ---------------------------------------------------------------------------------------------------------
// <autogenerated>
// File          : Comment.cs
// Date          : 2013/05/21 04:17:59
// XSD Filepath  : http://doodle.com/xsd1/comment.xsd
// XSD Namespace : http://doodle.com/xsd1
// CodeXS        : Version 0.57 Beta - 13 Jul 2006
// .NET Runtime  : Version 2.0.50727.3643
// Generation No.: 0001
//   -------------------------------------------------------------------------------------------------------
//   Code Modifiers:
//   Generator:
//     Assembly  : CodeXS.Schema
//     Namespace : CodeXS.Schema.CodeModifier.HeadComment
//     Version   : 0.57.0.0
//   Generator:
//     Assembly  : CodeXS.Schema.StandardCodeModifier
//     Namespace : CodeXS.Schema.StandardCodeModifier.ReferencesConstruct
//     Version   : 0.57.0.0
//   Generator:
//     Assembly  : CodeXS.Schema.StandardCodeModifier
//     Namespace : CodeXS.Schema.StandardCodeModifier.SerializationAttributes
//     Version   : 0.57.0.0
//   Generator:
//     Assembly  : CodeXS.Schema.StandardCodeModifier
//     Namespace : CodeXS.Schema.StandardCodeModifier.DeclarationCommentConstruct
//     Version   : 0.57.0.0
//   Generator:
//     Assembly  : CodeXS.Schema.StandardCodeModifier
//     Namespace : CodeXS.Schema.StandardCodeModifier.PropertyConstruct
//     Version   : 0.57.0.0
//   Generator:
//     Assembly  : CodeXS.Schema.StandardCodeModifier
//     Namespace : CodeXS.Schema.StandardCodeModifier.CollectionConstruct
//     Version   : 0.57.0.0
//   Generator:
//     Assembly  : CodeXS.Schema.StandardCodeModifier
//     Namespace : CodeXS.Schema.StandardCodeModifier.SerializationSupportConstruct
//     Version   : 0.57.0.0
//   Generator:
//     Assembly  : CodeXS.Schema.StandardCodeModifier
//     Namespace : CodeXS.Schema.StandardCodeModifier.SchemaLocationAttribute
//     Version   : 0.57.0.0
//   Generator:
//     Assembly  : CodeXS.Schema.StandardCodeModifier
//     Namespace : CodeXS.Schema.StandardCodeModifier.LanguageFixupConstruct
//     Version   : 0.57.0.0
//   Generator:
//     Assembly  : CodeXS.Schema.StandardCodeModifier
//     Namespace : CodeXS.Schema.StandardCodeModifier.SerializationClassConstruct
//     Version   : 0.57.0.0
//   Generator:
//     Assembly  : CodeXS.Schema.StandardCodeModifier
//     Namespace : CodeXS.Schema.StandardCodeModifier.CommonCodeClassConstruct
//     Version   : 0.57.0.0
//   Generator:
//     Assembly  : CodeXS.Schema.StandardCodeModifier
//     Namespace : CodeXS.Schema.StandardCodeModifier.CodeAttributeCleanup
//     Version   : 0.57.0.0
// 
// Notes:
// * Changes to this file may cause incorrect behaviour and will be lost if the code is regenerated.
// </autogenerated>
// ---------------------------------------------------------------------------------------------------------
namespace EasySchedule.DataModel
{
	using System;
	using System.IO;
	using System.Text;
	using System.Collections;
	using System.Xml;
	using System.Xml.Schema;
	using System.Xml.Serialization;
	
	/// <summary>
	/// EasySchedule.DataModel.CommentType Class implementation.
	/// </summary>
	[System.CodeDom.Compiler.GeneratedCodeAttribute("Director", "0.0.57.0")]
    
	[System.Diagnostics.DebuggerStepThroughAttribute()]
    
	[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://doodle.com/xsd1")]
	[System.Xml.Serialization.XmlRootAttribute("comment", Namespace="http://doodle.com/xsd1", IsNullable=false)]
	public partial class CommentType
	{
		/// <summary>
		/// The private member referenced by the
		/// <see cref="id" /> property.
		/// </summary>
		private long @__id;
		/// <summary>
		/// The private member referenced by the
		/// <see cref="idSpecified" /> property.
		/// </summary>
		private bool @__idSpecified;
		/// <summary>
		/// The private member referenced by the
		/// <see cref="who" /> property.
		/// </summary>
		private string @__who;
		/// <summary>
		/// The private member referenced by the
		/// <see cref="userId" /> property.
		/// </summary>
		private string @__userId;
		/// <summary>
		/// The private member referenced by the
		/// <see cref="when" /> property.
		/// </summary>
		private System.DateTime @__when;
		/// <summary>
		/// The private member referenced by the
		/// <see cref="whenSpecified" /> property.
		/// </summary>
		private bool @__whenSpecified;
		/// <summary>
		/// The private member referenced by the
		/// <see cref="what" /> property.
		/// </summary>
		private string @__what;
		/// <summary>
		/// Sets or gets the <see cref="__id" />
		/// value of the <see cref="CommentType" />
		/// object class.
		/// </summary>
		public long id
		{
			get
			{
				return this.@__id;
			}
			set
			{
				this.@__id = value;
				this.idSpecified = true;
			}
		}
		/// <summary>
		/// Sets or gets the <see cref="__idSpecified" />
		/// value of the <see cref="CommentType" />
		/// object class.
		/// </summary>
		[System.Xml.Serialization.XmlIgnoreAttribute()]
		public bool idSpecified
		{
			get
			{
				return this.@__idSpecified;
			}
			set
			{
				this.@__idSpecified = value;
			}
		}
		/// <summary>
		/// Sets or gets the <see cref="__who" />
		/// value of the <see cref="CommentType" />
		/// object class.
		/// </summary>
		public string who
		{
			get
			{
				return this.@__who;
			}
			set
			{
				this.@__who = value;
			}
		}
		/// <summary>
		/// Sets or gets the <see cref="__userId" />
		/// value of the <see cref="CommentType" />
		/// object class.
		/// </summary>
		public string userId
		{
			get
			{
				return this.@__userId;
			}
			set
			{
				this.@__userId = value;
			}
		}
		/// <summary>
		/// Sets or gets the <see cref="__when" />
		/// value of the <see cref="CommentType" />
		/// object class.
		/// </summary>
		public System.DateTime when
		{
			get
			{
				return this.@__when;
			}
			set
			{
				this.@__when = value;
				this.whenSpecified = true;
			}
		}
		/// <summary>
		/// Sets or gets the <see cref="__whenSpecified" />
		/// value of the <see cref="CommentType" />
		/// object class.
		/// </summary>
		[System.Xml.Serialization.XmlIgnoreAttribute()]
		public bool whenSpecified
		{
			get
			{
				return this.@__whenSpecified;
			}
			set
			{
				this.@__whenSpecified = value;
			}
		}
		/// <summary>
		/// Sets or gets the <see cref="__what" />
		/// value of the <see cref="CommentType" />
		/// object class.
		/// </summary>
		public string what
		{
			get
			{
				return this.@__what;
			}
			set
			{
				this.@__what = value;
			}
		}
		/// <summary>
		/// Gets the XML string for the serialized
		/// <see cref="CommentType" /> object.
		/// </summary>
		public virtual string Xml
		{
			get
			{
				return Serializer.ToXml(this, this.GetType());
			}
		}
		/// <summary>
		/// Creates a new <see cref="CommentType" /> 
		/// object from an XML string.
		/// </summary>
		/// <param name="Xml">
		/// XML string to create the object from.</param>
		/// <returns>
		/// A <see cref="CommentType" /> object.
		/// </returns>
		public static CommentType FromXml(string Xml)
		{
			return ((CommentType)(Serializer.FromXml(Xml, typeof(CommentType))));
		}
	}
}
